<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MarkItUp.master" 
Inherits="System.Web.Mvc.ViewPage<List<User>>" %>
<%@ Import Namespace="Wikey.Entity"%>

<asp:Content ID="Content2" ContentPlaceHolderID="Main" runat="server">

    <h2>Index</h2>
    
    <ul>
    <% foreach (var user in ViewData.Model) {%>
        <li> 
           <img src='<%=Html.ResolveUrl(String.Format("~/Uploads/Users/{0}" , user.Picture)) %>' />
  
        <%= Html.ActionLink( String.IsNullOrEmpty(user.Name ) ? user.Id.ToString() : user.Name
          , user.Credential.Username ?? user.Id.ToString(), "My" )%>  
                  </li>      
       <% } %>
    </ul>
    
    
</asp:Content>
